package com.github.CharlesSong.service;

import com.github.CharlesSong.dao.UserServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Description:
 * Author: CharlesSong
 * Date  : 2015/10/12
 */
@Service("userService")
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserServiceMapper userServiceMapper;
    @Override
    public List<Map<String, Object>> queryUserList(Map<String, Object> param) {
        return userServiceMapper.queryUserList(param);
    }


    @Override
    @Transactional
    public void insertUser(Map<String, Object> param) {
        userServiceMapper.insertUser(param);
    }

    @Override
    @Transactional
    public void deleteUser(Map<String, Object> param) {
        userServiceMapper.deleteUser(param);
    }
}
